package biblioteca.persistencia;


import javax.persistence.Basic;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
//import javax.persistence.Column;
import javax.persistence.Entity;
//import javax.persistence.GeneratedValue;
//import javax.persistence.GenerationType;
import javax.persistence.Id;




@Entity
public class Persona {
		
	@Basic
	private String contrasena;
	
	@Basic
	private String funcion;// o adminstrador , usuario o visitante
	
	@Id
	private String email;
	
	
	public Persona(String email, String contrasena, String funcion) {
		super();
		this.email = email;
		this.contrasena=contrasena;
		this.funcion=funcion;
	}


	public String getContrasena() {
		return contrasena;
	}


	public void setContrasena(String contrasena) {
		this.contrasena = contrasena;
	}


	public String getFuncion() {
		return funcion;
	}


	public void setFuncion(String funcion) {
		this.funcion = funcion;
	}


	public String getEmail() {
		return email;
	}


	public void setEmail(String email) {
		this.email = email;
	}
	
}


